package com.baitiaojun.security.core.service;

import com.baitiaojun.security.core.domain.LoginUser;

import javax.servlet.http.HttpServletRequest;

public interface AuthenticationService {

    LoginUser getLoginUser(String uuid);

    LoginUser getLoginUser(HttpServletRequest request);

    String getToken(HttpServletRequest request);

    String parseToken(String token);

    String createToken(String subject);

    LoginUser initUserAgent(String token);

    void setSecurityContext(LoginUser loginUser, HttpServletRequest request);

    void refresh(LoginUser loginUser);

    void addLoginUser(LoginUser loginUser);
}
